#include <iostream>
#include <string.h>

using namespace std;

int main(void)
{
	/* 类似C语言的字符处理 */
	char a[50];
	strcpy(a,"Hello World");
	cout << "a = " << a << endl;
	cout << "strlen(a) = " << strlen(a) << endl << endl;

	/* string类型的字符处理 */
	string str = "";
	str = "nihao,";
	str += "shijie!";
	cout << "str = " << str << endl;
	cout << "str.length() = " << str.length() << endl;

	return 0;
}